import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";
import { ReqPage } from "../interface";

export const loadDatResourceList = () => {
  return http.get<DataResource.ResDataResource>(PORT1 + `/system/sys-data-resource/list`);
};

export namespace DataResource {
  export interface ResDataResource {
    id: number;
    name: string;
    url: string;
    username: string;
    password: string;
    createBy: number;
    createTime: Date;
    updateBy: number;
    updateTime: Date;
    isDeleted: number;
  }
  export interface ReqDataResource extends ReqPage {
    id: number;
    name: string;
    url: string;
    username: string;
    password: string;
    createBy: number;
    createTime: Date;
    updateBy: number;
    updateTime: Date;
    isDeleted: number;
  }
}
